﻿namespace EFS.RC.CC.CHL.Config
{
	public static class Settings
	{
		#region Composition
		private static System.Boolean loaded = false;
		#endregion

		#region LoadConfiguration
		private static void Load()
		{
			// read section
			EFS.Common.Config.Reader conf = new EFS.Common.Config.Reader("EFS/CC/CHL", false);

			// check
			EFS.Common.Verify.Reference(conf, "conf EFS/CC/CHL");

			// max items
			maximumItemsQueued = conf.GetAttributeInt("maximumItems");
		}
		#endregion

		#region Properties

		/// Property MaximumItemsQueued: Get
		private static System.Int32 maximumItemsQueued = 0;
		public static System.Int32 MaximumItemsQueued
		{
			get
			{
				if (!loaded)
				{
					Load();
				}
				return maximumItemsQueued;
			}
		}
		#endregion
	}

}